-- GENERATED SPELL FOR [Tainted Elemental] --


function spell0_22009(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(38253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22009', 10000, 1)
end

function Sorts_22009(pUnit, Event)
local choix_sorts_22009 = math.random(0, 0)
if choix_sorts_22009 == 0 then
pUnit:RegisterEvent('spell0_22009', 1, 1)
end
end

function mob22009_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22009', math.random(1500, 3000), 1)
end

function mob22009_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22009_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22009_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22009, 1, 'mob22009_Action')
RegisterUnitEvent(22009, 2, 'mob22009_Leave')
RegisterUnitEvent(22009, 3, 'mob22009_Kill')
RegisterUnitEvent(22009, 4, 'mob22009_Die')
